package com.test;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.springBoot.MainRun;
import com.springBoot.dao.UserDao;

@Configuration
//@PropertySource(value = "classpath:jdbc.properties")
//@PropertySource(value={"classpath:jdbc.properties"},ignoreResourceNotFound=true)
@PropertySources({@PropertySource("classpath:jdbc.properties")})
@RunWith(SpringJUnit4ClassRunner.class)
@org.springframework.boot.test.context.SpringBootTest(classes=MainRun.class)
public class SpringBootTest0041 {

	Logger logger= LoggerFactory.getLogger(SpringBootTest0041.class);
	
//	@Resource
//	UserService userService;
//	
	@Resource
	UserDao userDao;
//	
//	@Resource
//	StringRedisTemplate stringRedisTemplate;
	
	@Test
	public void test01(){
		logger.info("hhhh");
//		stringRedisTemplate.opsForValue().set("1","555");
//		System.out.println(15/2^2);
	}
	
	@Test
	public void test02(){
		System.out.println(userDao.selectAll().get(0).get("auditingCode"));
	}
}
